package Java.BlackHorse.Args;

public class ArgsDemo1 {
    public static void main(String[] args) {
        System.out.println(getSum(1,2,3,4,5));

    }
    public static int getSum(int... args){
        int sum=0;
        for(int i : args){
            sum+=i;
            System.out.println(i);
        }
        return sum;
    }

}
